import request from "../utils/request";


//获取用户购物车信息
export function getGouWuChe(data){
	return request({
		url:"/p/shopCart/info",
		method:"post",
		data
	})
}
//删除购物车信息
export function delgouwuche(data){
	return request({
		url:"/p/shopCart/deleteItem",
		method:"DELETE",
		data
	})
}
//添加删除购物车
export function tianjia(data){
	return request({
		url:"/p/shopCart/changeItem",
		method:"post",
		data
	})
}

//计算总价
export function getZongJia(data){
	return request({
		url:"/p/shopCart/totalPay",
		method:"post",
		data
	})
}